package com.wdd.web.defaultt.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
//全局捕获异常类
@ControllerAdvice
public class GlobalException {
	@ExceptionHandler(RuntimeException.class)
	@ResponseBody
	public String resultErr(){
		
		return "全局异常";
	}
}
